import random

first,second,third,forth,sorry=0,0,0,0,0
for i in range(10000):
    pickNamber=random.sample(range(1,33),8)
    myNamber=random.sample(range(1,33),8)
    if len(list(set(pickNamber).intersection(set(myNamber))))==5:
        forth+=1
    elif len(list(set(pickNamber).intersection(set(myNamber))))==6:
        third+=1
    elif len(list(set(pickNamber).intersection(set(myNamber))))==6:
        second+=1
    elif len(list(set(pickNamber).intersection(set(myNamber))))==6:
        first+=1
    else:
        sorry+=1
print("一等奖：{}次".format(first))
print("二等奖：{}次".format(second))
print("三等奖：{}次".format(third))
print("四等奖：{}次".format(forth))
print("未中奖奖：{}次".format(sorry))


